package com.canic.dkd.web.merchandise.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.canic.dkd.base.annotations.CreateAt;
import com.canic.dkd.base.annotations.CreateBy;
import com.canic.dkd.base.annotations.UpdateAt;
import com.canic.dkd.base.annotations.UpdateBy;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ZC
 * @since 2019-05-06
 */
@Data
@TableName("biz_merchandise")
public class Merchandise {

    @TableId(value="id")
    private String id;
    /**
     * 店ID
     */
    @TableField("shop_id")
    private String shopId;

    @TableField("name")
    private String name;

    @TableField("code")
    private String code;

    @TableField("deleted")
    private Boolean deleted;
    /**
     * 单价
     */
    @TableField("price")
    private BigDecimal price;
    /**
     * 库存数量
     */
    @TableField("inventory")
    private Long inventory;

    @TableField("description")
    private String description;


    /*********分割线**下方字段与业务无关********/

    @CreateAt
    @TableField("created_on")
    private Date createdOn;

    @UpdateAt
    @TableField("updated_on")
    private Date updatedOn;

    @CreateBy
    @TableField("created_by")
    private String createdBy;

    @UpdateBy
    @TableField("updated_by")
    private String updatedBy;

}
